package com.IO.Buffered;

import java.io.BufferedReader;
import java.io.FileReader;

/**
 * name：zhangwang
 * time：2025/3/11 23:25
 */
public class Test1 {
    public static void main(String[] args) throws Exception {
        //创建高效字符流，读对象
        BufferedReader bufferedReader = new BufferedReader(new FileReader("1_张旺-Java基础.txt"));
        String ss;//用来保存每次循环读取的字符串
        while ((ss = bufferedReader.readLine()) != null){
            System.out.println(ss);
        }
    }
}
